package com.example.cavastest;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.FrameLayout;

public class MainActivity extends AppCompatActivity {
    String passType;
    String[] type;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();
        passType="outtype";
        Resources res = getResources();
        if ("outinfo".equals(passType)){
            type=res.getStringArray(R.array.outtype);
        }else if ("ininfo".equals(passType)){
            type=res.getStringArray(R.array.intype);
        }
        FrameLayout ll=(FrameLayout)findViewById(R.id.canvas);
        ll.addView(new TestCavasView(this));

    }
}
